package com.shuimutong.demo.junit;

import java.util.UUID;

public class RedisUtil {
	private static boolean INIT_STATE = false;
	
	public static String get(String key) {
		if(INIT_STATE) {
			return UUID.randomUUID().toString();
		} else {
			throw new NullPointerException("资源未初始化");
		}
	}
	
}
